testutil:util.hpp testutil.cc
	g++ -o $@ $^ -std=c++11

testlevel:level.hpp testlevel.cc
	g++ -o $@ $^ -std=c++11

testmessge:util.hpp level.hpp message.hpp testmessage.cc
	g++ -o $@ $^ -std=c++11

testformat:util.hpp level.hpp message.hpp format.hpp testformat.cc
	g++ -o $@ $^ -std=c++11 -lpthread -g

testsink:util.hpp level.hpp message.hpp format.hpp sink.hpp testsink.cc
	g++ -o $@ $^ -std=c++11 -lpthread -g

testlogger:util.hpp level.hpp message.hpp format.hpp sink.hpp logger.hpp testlogger.cc
	g++ -o $@ $^ -std=c++11 -lpthread -g

testbuffer:util.hpp level.hpp message.hpp format.hpp sink.hpp logger.hpp buffer.hpp testbuffer.cc
	g++ -o $@ $^ -std=c++11 -lpthread -g

testqywlog:util.hpp level.hpp message.hpp format.hpp sink.hpp logger.hpp buffer.hpp looper.hpp testqywlog.cc
	g++ -o $@ $^ -std=c++11 -lpthread -g

.PHONY:clean
clean:
	rm -rf testutil testlevel testmessage testformat testsink testlogger testbuffer testqywlog
